package input;

import java.io.FileInputStream;
import java.io.IOException;

public class FileInputStreamDemo2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("G:\\Javatest2\\file\\b.txt");
        int i;
        while((i=fis.read())!=-1){
            System.out.println((char)i);
        }
        fis.close();
    }
}
